'use strict'

class changeselfmessage{
    constructor(){
        this.param = '/'

    }

    async post(c){
        let a = c.service.fun;
        c.setHeader('content-type', 'text/html; charset=utf-8');
        let {user_id,user_self} = JSON.parse(c.body);
        await a.upd('user_list',{'user_id':`${user_id}`},{'user_self':`${user_self}`},c.service.pool);
        c.send('success');
    }
}


module.exports = changeselfmessage
